﻿using System;

namespace BaseSyntax.Collection.AnimalBase
{
	public abstract class Animal
	{
		protected string name;

		public string Name
		{
			get => name;
			set => name = value;
		}

		public Animal()
		{
			name = "not name";
		}

		public Animal(string newName)
		{
			name = newName;
		}

		public void Feed()
		{
			Console.WriteLine($"{name} feed");
		}
		
	}
}